<script setup lang="ts">
import workAreaFn from '@/hooks/fun/workArea'
import { onMounted } from 'vue';
import mapV from './components/map.vue'
const { mapInfo, leftCard, getOrganizationList, organizationList, defaultProps, loading, handleNodeClick } = workAreaFn()
getOrganizationList()
</script>

<template>
  <div class="workAreaPage" style="display: flex;min-width: 800px;" v-loading.fullscreen.lock="loading">
    <!-- 左侧 -->
    <leftCard style="margin-right: 20px;" :tree-data="organizationList" :defaultProps="defaultProps"
      @handleNodeClick="handleNodeClick"></leftCard>
    <mapV ref="mapVal" :mapInfo="mapInfo"></mapV>
  </div>
</template>

<style scoped></style>